package com.dd.cloud.user.service.doctor;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.doctor.DoctorStudyRecord;
import com.dd.cloud.user.req.doctor.DoctorStudyReq;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 医生学习记录表 服务类
 * </p>
 *
 * @author czg
 * @since 2024-02-21
 */
public interface IDoctorStudyRecordService extends IService<DoctorStudyRecord> {

    /**
     * 学习记录
     * @param type
     * @param studyId
     * @param rate
     * @param img
     * @param chapter
     */
    void addStudyRecord(Integer studyId, Integer type, BigDecimal rate, String name, String img, Integer chapter, Integer doctorId);

    /**
     *分页查询
     * @param req
     * @return
     */
    Page<DoctorStudyRecord> queryDoctorStudyPage(DoctorStudyReq req);

    /**
     * 删除学习状态
     * @param studyIds
     */
    void updateStudyStatus(String studyIds);
}
